How can I stop an object property access chain under certain conditions

join shbcf.ru